package io.yuanqi.hgtcshop.controller;

import io.yuanqi.hgtcshop.entity.dos.User;
import io.yuanqi.hgtcshop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * UserController {@link }
 *
 * @author: J.S
 * @since: 2024/1/26
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @Autowired
    private UserService userService;

    @GetMapping("/list")
    public List<User> getUserList(){
        return userService.getList();
    }


}
